package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

//BaseKhjlZbzs 用户
type BaseKhjlZbzs struct {
	FZID       int        `gorm:"AUTO_INCREMENT;primary_key;column:FZID"`
	DTID       time.Time  `gorm:"column:DTID;size:50"`
	ZBNO       int        `gorm:"column:ZBID"`
	ConfKhjlZb ConfKhjlZb `gorm:"ForeignKey:ZBNO"`
	ZBFZ       float64    `gorm:"column:ZBFZ"`
}

//TableName BaseKhjlZbzs表名
func (BaseKhjlZbzs) TableName() string {
	return "T_BASE_KHJL_ZBZS"
}

func BaseKhjlZbzsEF() base.EntityFunc {
	return func() interface{} {
		entity := BaseKhjlZbzs{}
		return &entity
	}
}
func BaseKhjlZbzsESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []BaseKhjlZbzs
		return &entities
	}
}

func init() {
	relationship := []string{"ConfKhjlZb"}
	base.DaoPoolObj.Put("BaseKhjlZbzs", base.NewDefaultDao(BaseKhjlZbzsEF(), BaseKhjlZbzsESF(), relationship, "my"))
}
